<template>
	<view class="p-2 flex align-center " @click="openDetail">
		<image :src="item.cover" style="height: 150rpx;width: 150rpx;" class="rounded mr-2"></image>
		<view class="flex flex-column flex-1">
			<text class="fond-md text-dark font-weight-bold">#{{item.title}}#</text>
			<text class="fond text-secondary">{{item.desc}}</text>
			<view class="flex align-center fond text-secondary">
				<text class="mr-2">动态:{{item.news_count}}</text>
				<text>今日:{{item.today_count}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			item:Object,
			index:Number
		},
		methods:{
			openDetail(){
				uni.navigateTo({
					url:"/pages/topic-detail/topic-detail?detail="+JSON.stringify(this.item)
				})
			}
		}
	}
</script>

<style>
</style>